import tkinter as tk

n1 = 13
n2 = 18
n3 = 10
ipx = 2

top = tk.Tk()

top.title('schewpid')
top.resizable(False, False)
line1 = tk.Frame(top)
line1.pack(side = tk.TOP, fill = tk.X)

btn1 = tk.Button(line1, text = 'line1-1', width = n1)
btn1.pack(side = tk.LEFT, ipadx = ipx)
btn2 = tk.Button(line1, text = 'line1-2', width = n1)
btn2.pack(side = tk.LEFT, ipadx = ipx)
btn3 = tk.Button(line1, text = 'line1-3', width = n1)
btn3.pack(side = tk.LEFT, ipadx = ipx)
btn4 = tk.Button(line1, text = 'line1-4', width = n1)
btn4.pack(side = tk.LEFT, ipadx = ipx)

line2 = tk.Frame(top)
line2.pack(side = tk.TOP, fill = tk.X)

btn5 = tk.Button(line2, text = 'line2-1', width = n2)
btn5.pack(side = tk.LEFT, ipadx = ipx)
btn6 = tk.Button(line2, text = 'line2-2', width = n2)
btn6.pack(side = tk.LEFT, ipadx = ipx)
btn7 = tk.Button(line2, text = 'line2-3', width = n2)
btn7.pack(side = tk.LEFT, ipadx = ipx)

line3 = tk.Frame(top)
line3.pack(side = tk.TOP, fill = tk.X)
btn8 = tk.Button(line3, text = 'line3-1', width = n3)
btn8.pack(side = tk.LEFT, ipadx = ipx)
btn9 = tk.Button(line3, text = 'line3-2', width = n3)
btn9.pack(side = tk.LEFT, ipadx = ipx)
btn10 = tk.Button(line3, text = 'line3-3', width = n3)
btn10.pack(side = tk.LEFT, ipadx = ipx)
btn11 = tk.Button(line3, text = 'line3-4', width = n3)
btn11.pack(side = tk.LEFT, ipadx = ipx)
btn12 = tk.Button(line3, text = 'line3-5', width = n3)
btn12.pack(side = tk.LEFT, ipadx = ipx)

top.mainloop()
